from google.appengine.ext import webapp
from google.appengine.api import users
from google.appengine.ext.webapp import template
from google.appengine.ext import db
from AdminBase import AdminBase

import os
import cgi

class ChangeWebsiteHandler(AdminBase):
    def GetTemplateFileName(self):
        return ''
        
    def GetBreadcrumbList(self):
        return []
    
    def GetTemplateValuesDict(self, template_values, user):
        self.redirect('/editwebsites')

    def DoPost(self, user):
        if self.request.get('changewebsitebutton'):
            self.redirect(self.request.get('newwebsite') + "/admin")
        else:
            self.redirect('/editwebsites')
        